{template 'header'}


<!--当前位置-->
<div class="location layout960">
	当前位置: <a href="{SITE_URL}">首页</a>&nbsp; &gt;&nbsp; <a href="{U::module('quote')}">行情</a>&nbsp; &gt;&nbsp; {$title}
</div>
<!--当前位置 end-->

<!--主体部分-->
<div class="layout960 fn-clear">
	<div class="layout-1of2 fn-left">
		<div class="content">
			<div class="article">
				<h1>{$title}</h1>
				<div class="article-info">
					<span>发布日期：{$adddate}</span>
					{if $copyfrom}<span>来源：{if $fromurl}<a href="{$fromurl}" target="_blank">{/if}{$copyfrom}{if $fromurl}</a>{/if}</span>{/if}
					{if $author}<span>作者：{$author}</span>{/if}
					<span>浏览次数：{$hits}</span>
				</div>

                <!--文章内容-->
                <div class="article-body">
                    {if  $pages>1 && $page && !$showAll}
                    <?php echo $contents['page-'.$page] ?>
                    {else}
                    {$contents['all']}
                    {/if}
                </div>
                <!--页码-->
                {if $pages && !$showAll}
                <div class="article-pages fn-clear" >
                    <ul >
                        {php $pagePrev = intval($page-1)}
                        {php $pageNext = intval($page+1)}
                        <a  {if !isset($titles['page-'.$pagePrev])}class="disabled"  href="javascript:void(0)"{else}href="{url('quote/show','itemid='.$itemid.'&page='.$pagePrev)}"{/if}>上一页</a>
                        <?php for($i=1;$i<=$pages;$i++) { ?>
                        <a {if $i==$page}class="current"{/if} href="{url('quote/show','itemid='.$itemid.'&page='.$i)}">{$i}</a>
                        <?php }?>
                        <a {if !isset($titles['page-'.$pageNext])} class="disabled"  href="javascript:void(0)" {else} href="{url('quote/show','itemid='.$itemid.'&page='.$pageNext)}"{/if}>下一页</a>
                        <a href="{url('quote/show','itemid='.$itemid.'&showAll')}">全文阅读</a>
                    </ul>
                </div>
                {/if}

                {if count($titles)!=0 && !$showAll}
                <div class="article-subpage">
                    <h3>文章导航:</h3>
                    <ul class="text-ellipsis fn-clear">
                        {loop $titles $k $v}
                        {php $np = str_replace('page-', '', $k)}
                        <li {if $np%2 == 0}class="event"{/if}><a {if $k=='page-'.$page}class="current"{/if} href="{url('quote/show','itemid='.$itemid.'&page='.$np)}" title="{$v}">{$v}</a></li>
                        {/loop}
                    </ul>
                </div>
                {/if}
                {if $keytags}
                <div class="article-keytags">
                    文章标签:
                    {loop $keytags $tag}
                    <a href="javascript:void(0);return false;">{$tag}</a>
                    {/loop}
                </div>
                {/if}
				<div class="operate">
					[ <a href="{$MOD[linkurl]}search.php">{$MOD[name]}搜索</a>]&nbsp;&nbsp;
					[ <a id='favorite' style="cursor: pointer">加入收藏</a>]&nbsp;&nbsp;
					[ <a id='mail' style="cursor: pointer">告诉好友</a>]&nbsp;&nbsp;
					[<a href="javascript:void(0)" onclick="print()">打印本文</a> ]&nbsp;&nbsp;
					[<a href="javascript:window.close()">关闭窗口</a>]
				</div>
				<!--article-body end-->
				<div class="article-bot fn-clear">
					<div class="article-nav fn-left">
						<p>上一篇：<!--{Template::tag("moduleid=$moduleid&condition=status=3 and addtime<$addtime&pagesize=1&order=addtime desc&template=list-np", -1)}--></p>
						<p>下一篇：<!--{Template::tag("moduleid=$moduleid&condition=status=3 and addtime>$addtime&pagesize=1&order=addtime asc&template=list-np", -1)}--></p>
					</div>
					<div class="article-share fn-right">
						<!--分享-->
						{template 'share-baidu', 'fragment'}
						<!-- 分享 END -->
					</div>
				</div>
			</div>
			<!--  -->
			<!--article end-->
		</div>
		<iframe src="{SITE_URL}extend/fragment.php?modules=recommend"  scrolling="no" frameborder="0" height="180" width="630"></iframe>
		{template 'duoshuo_review','extend'}
	</div>
	<div class='fn-right'>
	<iframe src="{SITE_URL}extend/fragment.php?modules=quote&psize=10&city_order={$city_order}"  scrolling="no" frameborder="0" height="303"></iframe>
	<iframe src="{SITE_URL}extend/fragment.php?modules=pic&psize=6"  scrolling="no" frameborder="0" height="440"></iframe>
	<iframe src="{SITE_URL}extend/fragment.php?modules=video&psize=6"  scrolling="no" frameborder="0" height='440'></iframe>
	<iframe src="{SITE_URL}extend/fragment.php?modules=BBS"  scrolling="no" frameborder="0" height='303'></iframe>
	<iframe src="{SITE_URL}extend/fragment.php?modules=use&psize=10"  scrolling="no" frameborder="0" height='303' ></iframe>
	<iframe src="{SITE_URL}extend/fragment.php?modules=learn&psize=10"  scrolling="no" frameborder="0" height='303' ></iframe>
	</div>
</div>
<script type="text/javascript">
	seajs.use(['$'], function ($) {
		$("#favorite").click(function(){
			$("#job_favorite").submit();
		});
		$("#mail").click(function(){
			$("#sendmail").submit();
		});
	});
</script>
<!--主体部分 end-->
{template 'footer'}